Home | Trees | Index | Help |
|
---|
Package lemon :: Package external :: Package Cheetah :: Package Tests :: Module CheetahWrapper :: Class CFBase |
|
TestCase
--+
|
CFBase
CFIdirBase
,
Flat
,
FlatRecurseCollision
,
NoBackup
,
OneFile
,
OneFileNoExtension
,
OneFileWithOdir
,
RecurseExplicit
,
RecurseExplicitWIthOdir
,
RecurseImplicit
,
SplatTmpl
,
SplatTmplWithSubdirectories
,
ThreeFilesWithSubdirectories
,
ThreeFilesWithSubdirectoriesNoExtension
,
VarietyWithOdir
Base class for "cheetah compile" and "cheetah fill" unit tests.
Method Summary | |
---|---|
checkCompile(self,
path)
| |
checkFill(self,
path)
| |
Verify 'path' does not exist. | |
Verify a destination subdirectory exists and contains an __init__.py file. | |
Run a "cheetah compile" or "cheetah fill" subcommand. | |
Run a subcommand and expect it to fail. | |
inform(self,
message)
| |
Create the top-level directories, subdirectories and .tmpl files. | |
Hook method for deconstructing the test fixture after testing it. | |
Low-level helper to check a destination file. | |
Inherited from TestCase | |
Create an instance of the class that will use the named test method when executed. | |
| |
| |
| |
Fail the test unless the expression is true. | |
Fail if the two objects are unequal as determined by the '!=' operator. | |
Fail if the two objects are unequal as determined by the '!=' operator. | |
Fail if the two objects are equal as determined by the '==' operator. | |
Fail if the two objects are equal as determined by the '==' operator. | |
Fail unless an exception of class excClass is thrown by callableObj when invoked with arguments args and keyword arguments kwargs. | |
| |
Run the test without collecting errors in a TestResult... | |
| |
Returns a one-line description of the test, or None if no description has been provided. | |
| |
Fail immediately, with the given message. | |
Fail the test if the expression is true. | |
Fail if the two objects are equal as determined by the '==' operator. | |
Fail the test unless the expression is true. | |
Fail if the two objects are unequal as determined by the '!=' operator. | |
Fail unless an exception of class excClass is thrown by callableObj when invoked with arguments args and keyword arguments kwargs. | |
| |
| |
| |
| |
| |
Returns a one-line description of the test, or None if no description has been provided. | |
Setup the default meta data for the test case:... | |
|
Class Variable Summary | |
---|---|
bool |
expectError = False
|
str |
srcDir = ''
|
tuple |
srcFiles = ('a.tmpl', 'child/a.tmpl', 'child/grandkid/a....
|
tuple |
subdirs = ('child', 'child/grandkid')
|
Inherited from TestCase | |
NoneType |
name = None |
Method Details |
---|
checkNoBackup(self, path)Verify 'path' does not exist. (To check --nobackup.) |
checkSubdirPyInit(self, path)Verify a destination subdirectory exists and contains an __init__.py file. |
go(self, cmd, expectedStatus=0, expectedOutputSubstring=None)Run a "cheetah compile" or "cheetah fill" subcommand. in : cmd, string, the command to run. expectedStatus, int, subcommand's expected output status. 0 if the subcommand is expected to succeed, 1-255 otherwise. expectedOutputSubstring, string, substring which much appear in the standard output or standard error. None to skip this test. out: None. |
goExpectError(self, cmd)Run a subcommand and expect it to fail. in : cmd, string, the command to run. out: None. |
setUp(self)Create the top-level directories, subdirectories and .tmpl files. |
tearDown(self)Hook method for deconstructing the test fixture after testing it.
|
_checkDestFileHelper(self, path, expected, allowSurroundingText, errmsg)Low-level helper to check a destination file. in : path, string, the destination path. expected, string, the expected contents. allowSurroundingtext, bool, allow the result to contain additional text around the 'expected' substring? errmsg, string, the error message. It may contain the following "%"-operator keys: path, expected, result. out: None |
Class Variable Details |
---|
expectError
|
srcDir
|
srcFiles
|
subdirs
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Mon Nov 10 15:07:41 2003 | http://epydoc.sf.net |